<div id="Alias-modules"></div>
<div class="header">
<p>
Next: [[cvs: Regular modules#Regular modules|Regular modules]], Up: [[cvs: The modules file#The modules file|modules]] &nbsp; |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p>
</div>

----

<div id="Alias-modules-1"></div>
==== Alias modules ====
<div id="index-Alias-modules"></div>
<div id="index-_002da_002c-in-modules-file"></div>

Alias modules are the simplest kind of module:

;<code><var>mname</var> -a <var>aliases</var>&hellip;</code>
: This represents the simplest way of defining a module <var>mname</var>.  The &lsquo;<code>-a</code>&rsquo; flags the definition as a simple alias: <small>CVS</small> will treat any use of <var>mname</var> (as a command argument) as if the list of names <var>aliases</var> had been specified instead. <var>aliases</var> may contain either other module names or paths.  When you use paths in aliases, <code>checkout</code> creates all intermediate directories in the working directory, just as if the path had been specified explicitly in the <small>CVS</small> arguments.

For example, if the modules file contains:

<div class="example" style="margin-left: 3.2em">
 amodule -a first-dir
</div>

then the following two commands are equivalent:

<div class="example" style="margin-left: 3.2em">
 $ cvs co amodule
 $ cvs co first-dir
</div>

and they each would provide output such as:

<div class="example" style="margin-left: 3.2em">
 cvs checkout: Updating first-dir
 U first-dir/file1
 U first-dir/file2
 cvs checkout: Updating first-dir/sdir
 U first-dir/sdir/sfile
</div>

This document was generated on <i>a sunny day</i> using [http://www.nongnu.org/texi2html/ <i>texi2html</i>].
